package com.touzbi.hss.beans;

import java.util.HashSet;
import java.util.Set;

public class Soin {
	private long id;
	private String content;
	private Set<Patient> patients = new HashSet<Patient>();;

	public long getId() {
		return this.id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Set<Patient> getPatients() {
		return patients;
	}

	public void setPatients(Set<Patient> patients) {
		this.patients = patients;
	}

	public void addPatient(Patient patient) {
		this.patients.add(patient);
	}

	public void removePatient(Patient patient) {
		this.patients.remove(patient);
		patient.removeSoin(this);
	}

}
